import * as React from 'react'
import { View, TouchableOpacity, Text } from 'react-native'

import { RefreshList, RefreshState } from './index'



const App = () => {

    const [refreshState, setRefreshState] = React.useState(RefreshState.Idle)

    
    return (
        <RefreshList
                data={['a', 'b']}
                renderItem={({ item, index }) => {

                    return <View>{item}</View>
                }}

                refreshState={refreshState}
                onHeaderRefresh={() => {

                }}
                onFooterRefresh={() => {

                }}
            />
    )
}